export interface ITemplateJSON {
  label: string
  modelValue: string
  type: 'input' | 'select' | 'checkbox' | 'upload' | 'radio' | 'datetime' | 'picker' | 'textarea'
  options: {
    type?: 'text' | 'password' | 'textarea' | 'number'
    children?: any
    placeholder?: string
    action?: string
    required: boolean
    defaultValue?: any
    fileList?: any[]
    disabled?: boolean
    min?: number
    max?: number
    width?: string | number
    show?: boolean
  }
}

export interface IFormParseProps {
  template: ITemplateJSON[],
  modelData: any
}

export interface IFormParseExpose {
  getModelData: () => any
}
